package com.mall.shopping.services.xdx;

import com.mall.shopping.DeleteOrderService;
import com.mall.shopping.dal.persistence.DeleteOrderMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * xdx
 * 2020/12/21
 * 22:33
 */
@Service(interfaceClass = DeleteOrderService.class)
@Component
@Slf4j
public class DeleteOrderServiceImpl implements DeleteOrderService {

    @Autowired
    DeleteOrderMapper deleteOrderMapper;


    @Override
    public boolean deleteByOrderId(String id) {
        int i = deleteOrderMapper.deleteByOrderId(id);
        return 1 == i;
    }
}
